package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * Courselevel generated by hbm2java
 */
@Entity
@Table(name="courselevel"
    
, uniqueConstraints = {  }
)

public class Courselevel  implements java.io.Serializable {


    // Fields    

     private int id;
     private String description;
     private String level;
     private String description2;
     private Set<Course> courses = new HashSet<Course>(0);


    // Constructors

    /** default constructor */
    public Courselevel() {
    }

	/** minimal constructor */
    public Courselevel(int id) {
        this.id = id;
    }
    
    /** full constructor */
    public Courselevel(int id, String description, String level, String description2, Set<Course> courses) {
        this.id = id;
        this.description = description;
        this.level = level;
        this.description2 = description2;
        this.courses = courses;
    }
    

   
    // Property accessors
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)

    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="description", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    @Column(name="level", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getLevel() {
        return this.level;
    }
    
    public void setLevel(String level) {
        this.level = level;
    }
    @Column(name="description2", unique=false, nullable=true, insertable=true, updatable=true, length=1000)

    public String getDescription2() {
        return this.description2;
    }
    
    public void setDescription2(String description2) {
        this.description2 = description2;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="courselevel")

    public Set<Course> getCourses() {
        return this.courses;
    }
    
    public void setCourses(Set<Course> courses) {
        this.courses = courses;
    }
   








}
